package com.example.cor.filters;

import com.example.cor.chain.FilterChain;
import com.example.cor.filter.Filter;

import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import java.io.IOException;

public class LogFilter implements Filter {
    @Override
    public void interceptor(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
        System.out.println("LogFilter----pre");
        //
        chain.next(request,response);

        System.out.println("LogFilter----post");
    }
}
